#-*- coding = utf-8 -*-
#@Time : 2022/4/1 12:01
#@Author : BAYERN
#@File : test.py
#@software: PyCharm

import re

def main():
    with open('文章.txt','r',encoding='utf-8') as f:
        text = f.read()

    text = text.replace('\n','').split('。')
    for i in text:
        i = re.sub(r"\[\d+\]|\[\d+–\d+\]","",i)
        print(i)


if __name__ == '__main__':
    main()